package edu.sctu.practice.class02.liqing.test04;

/**
 * Created by 123456 on 2015/10/10.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1, int n2) {
    this.n1 = n1;
        this.n2 = n2;
    }
    public void getAddition(){
        int value =n1 + n2;
        System.out.println("n1+n2=" +value);
    }

    public void getSubtration(){
        int value =n1 - n2;
        System.out.println("n1-n2=" +value);
    }

    public void getMultiplication(){
        int value =n1 * n2;
        System.out.println("n1*n2=" +value);
    }

    public void getDivision(){
        int value =n1 / n2;
        System.out.println("n1/n2=" +value);
    }
}





